package com.springcloud.entity;

/**
 * @author xiaoxiao
 * @version V1.0.1
 * @projectName scorder
 * @packageName com.springcloud.entity
 * @description desc
 * @email 932912474@qq.com
 * @date 2020-07-21 10:40
 **/

public class Transaction {
    private final Trader trader;
    private final int year;
    private final int value;
    public Transaction(Trader trader, int year, int value){
        this.trader = trader;
        this.year = year;
        this.value = value;
    }
    public Trader getTrader(){
        return this.trader;
    }
    public int getYear(){
        return this.year;
    }
    public int getValue(){
        return this.value;
    }
    public String toString(){
        return "{" + this.trader + ", " +
                "year: "+this.year+", " +
                "value:" + this.value +"}";
    }
}

